package com.xyht.medicine_management_system.modules.coupon.service;

import com.xyht.medicine_management_system.common.commonReturn.ResponseResult;
import com.xyht.medicine_management_system.modules.coupon.entity.MmsCoupon;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xyht.medicine_management_system.modules.coupon.entity.req.MmsCouponReq;

/**
 * <p>
 * 优惠劵表 服务类
 * </p>
 *
 * @author XYHT
 * @since 2023-11-29
 */
public interface MmsCouponService extends IService<MmsCoupon> {

    ResponseResult addCoupon(MmsCouponReq couponReq, String userId);

    ResponseResult delCoupon(MmsCouponReq couponReq);

    ResponseResult updateCoupon(MmsCouponReq couponReq);

    ResponseResult listCoupon(Integer pageNum, Integer pageSize, String searchStr);

    ResponseResult couponDetail(String couponId);

    ResponseResult userCanGetList(Integer pageNum, Integer pageSize, String searchStr, String userId);
}
